<div style="width: 17cm; font-size: 14px;">
<table>
    <tr >
        <td align="center" style="padding-left: 4cm;padding-right: 4cm;"><span class="printHeader">{translate}TEST TICKET{/translate}</td>
    </tr>
</table>
<table>
    <tr>
        <td class="label" width="200px;">{translate}Full name{/translate}:</td>
        <td class="label">{$person->get_name()}</td>         
    </tr>
    <tr>
        <td class="label" width="200px;">{translate}Patient's ID_1{/translate}:</td>
        <td class="label">{$patientCode}</td>         
    </tr>
    <tr>
        <td class="label" width="200px;">{translate}Age{/translate}:</td>
        <td class="label">{$person->getAge()}</td>                 
    </tr>
    <tr>
        <td class="label" width="200px;">{translate}Gender{/translate}:</td>
        <td class="label">{if $person->getGender()=="male" } {translate}Male{/translate} {elseif $person->getGender()=="female"} {translate}Female{/translate} {/if}</td>                 
    </tr>
    
    <tr>
        <td class="label">{translate}Address{/translate}:</td>
        <td class="label">{$person->getAddress()}</td>
    </tr>
    <tr>
        <td class="label">{translate}Department{/translate}:</td>
        <td class="label">{$departmentName}</td>
    </tr>
	<tr>
		<td class="label">{translate}Requested time{/translate}:</td>
		<td>{$assignedTestTicket.requested_time}</td>
	</tr>
	<tr>
		<td class="label">{translate}Diagnosis{/translate}:</td>
		<td rowspan="2"><label rows="2" cols="1" style="width: 100%;"
			id="testAssignDesktopDiagnosis" >{$assignedTestTicket.diagnosis}</label></td>
	</tr>
	<tr></tr>
	<tr>
        <td class="label">{translate}Assigned tests{/translate} :</td>
    </tr>
	<tr>
		<td colspan="3">
		<table class="grid">
		<tr>
		  <th style="width: 30px;" class="fist header">{translate}Order number{/translate}</th>
		  <th class="header">{translate}Test{/translate}</th>
		  <th class="header">{translate}Test detail{/translate}</th>
		  <th style="width: 160px;" class="header">{translate}Index{/translate}</th>
		  <th style="width: 160px;" class="last header">{translate}Result{/translate}</th>
		</tr>
        {assign var="count" value=1}
		{foreach from=$assignedTestArr item=test}
		  <tr><td width="20px;" >{$count++}</td><td>{$test.test_name} :</td></tr>	
		  {foreach from=$test.test_item item=testItem}
		  <tr><td>&nbsp;</td><td>&nbsp;</td><td style="font-style: italic;">{$testItem.name}</td><td>&nbsp;</td><td>&nbsp;</td></tr>
		  {/foreach}
        {/foreach}
		</table>
		</td>
	</tr>
</table>
<br>
<table width="100%">
    <tr>
        <td width="40%" align="center">
        <span style="text-transform: uppercase;font-weight: bold;">{translate}Doctor{/translate}<br/></span>
        <span>{translate}Full name{/translate}:  {$assignedTestTicket.doctor_name}</span>
        </td>
        <td width="60%" align="center">
         <span style="text-transform: uppercase;font-weight: bold;">{translate}Head diagnosis department{/translate}<br/></span>
        <span>{translate}Full name{/translate}:  ................................</span>
        
        </td>
    </tr>
</table>



